package com.jiyun.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiyun.model.xitong.YejigoalTeam;
import com.jiyun.service.IYejigoalTeamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-09-25
 */
@RestController
@RequestMapping("/yejiteam")
public class YejigoalTeamController {
    @Autowired
    IYejigoalTeamService  yejigoalTeamService;
    @RequestMapping("findAll")
    public Page<YejigoalTeam>  findAll(Integer pageNum, Integer pageSize, @RequestBody YejigoalTeam yejigoalTeam){
        return  yejigoalTeamService.findAll(pageNum,pageSize,yejigoalTeam);
    }
}
